﻿using NPOI.SS.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System
{
    [AttributeUsage(AttributeTargets.Property)]
    public sealed class ExcelColumn : Attribute
    {
        public ExcelColumn(CellType type = CellType.String)   //默认是字符串类型
        {
            ColumnType = type;
        }

        private CellType _ColumnType;
        private string _ColumnName;
        private int _Index;

        public int Index
        {
            get { return _Index; }
            set { _Index = value; }
        }

        public CellType ColumnType
        {
            get { return _ColumnType; }
            set { _ColumnType = value; }
        }

        public string ColumnName
        {
            get { return _ColumnName; }
            set { _ColumnName = value; }
        }
    }
}
